part of 'article_bloc.dart';

// ArticleUninitialized, ArticleLoading, ArticleSaved, ArticleLoaded, ArticleError

sealed class ArticleState extends Equatable {
  const ArticleState();
  
  @override
  List<Object> get props => [];
}

final class ArticleInitial extends ArticleState {}

final class ArticleUninitialized extends ArticleState {}

final class ArticleLoading extends ArticleState {}

class ArticleSaved extends ArticleState {
  final Article article;

  const ArticleSaved({
    required this.article,
  });

  @override
  List<Object> get props => [article];
}

class ArticleLoaded extends ArticleState {
  final Article article;

  const ArticleLoaded({
    required this.article,
  });

  @override
  List<Object> get props => [article];
}

class ArticleError extends ArticleState {
  final Object error;

  const ArticleError({
    required this.error,
  });

  @override
  List<Object> get props => [error];
}